 <?php 
 if($laptops != null){
 foreach ($laptops as $laptop) { ?>  
	 <div class="contentInfoBlock hover">
		<div class="prods_content decks">
		   <div class="forecastle">
			  <ol class="masthead">
				 <li class="port_side left_side4">
					<div class="pic_padd wrapper_pic_div" style="width:220px;height:156px;">
					   <a class="prods_pic_bg" href="<?php echo URL . 'details/showdetails/' . $laptop->ID; ?>" style="width:220px;height:156px;">
						  <img src="<?php echo URL;?>/public/img/products/<?php echo $laptop->IMAGENAME?>F.png" alt="<?php echo $laptop->MODEL ?>" title="<?php echo $laptop->MODEL ?>" style="width:220px;height:156px;margin:0px 0px 0px 0px;" height="156" width="220">
						  <div class="wrapper_pic_t" style="width:220px;height:156px;">
							 <div class="wrapper_pic_r" style="width:220px;height:156px;">
								<div class="wrapper_pic_b" style="width:220px;height:156px;">
								   <div class="wrapper_pic_l" style="width:220px;height:156px;">
									  <div class="wrapper_pic_tl" style="width:220px;height:156px;">
										 <div class="wrapper_pic_tr" style="width:220px;height:156px;">
											<div class="wrapper_pic_bl" style="width:220px;height:156px;">
											   <div class="wrapper_pic_br" style="width:220px;height:156px;">
											   </div>
											</div>
										 </div>
									  </div>
								   </div>
								</div>
							 </div>
						  </div>
					   </a>
					   <div class="sale">
					   </div>
					</div>
				 </li>
				 <li class="starboard_side bak4">
					<div class="info">
					   <div class="data data_padd">
						  <span>
						  Date Added:
						  </span>						  
						  <?php echo date('l, d F Y', strtotime($laptop->DATEADDED));?>
					   </div>
					   <h2 class="name name2_padd">
						  <span class="name">
						  <a href="<?php echo URL . 'details/showdetails/' . $laptop->ID; ?>">
						   <?php echo $laptop->MODEL ?>
						  </a>
						  </span>
					   </h2>
					   <div class="manuf manuf_padd">
						  <span>
						  Manufacturer:
						  </span>
						  <?php echo $laptop->BRAND ?>
					   </div>
					   <h2 class="price price2_padd">
						  <b>
						  Price:&nbsp;&nbsp;
						  </b>
						  <span class="productSpecialPrice">
						  Rs:<?php echo $laptop->SALEPRICE ?>
						  </span>
						  <del>
						  Rs:<?php echo $laptop->PRICE ?>
						  </del>
					   </h2>
					   <div class="button button2__padd">
						  <strong class="button_content button_content22">
							  <strong class="button bg_button">
								  <strong class="button-t">
								  <a href="<?php echo URL . 'details/showdetails/' . $laptop->ID; ?>" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button">
									  <span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-e">
									  </span>
									  <span class="ui-button-text">
										Details
									  </span>
								  </a>
								  </strong>
							  </strong>
						  </strong>
					   </div>
					</div>
				 </li>
			  </ol>
		   </div>
		</div>
	 </div>
	 <div class="prods_hseparator">
		<img src="<?php echo URL;?>/public/img/spacer.gif" alt="" height="1" width="1">
	 </div> 
<?php } 
 } else {
	echo "NO DATA FOUND!";
}?>